package com.xyy.saas.payment.dao.mapper;

import com.xyy.saas.payment.dao.model.BankPayRecord;
import com.xyy.saas.payment.dao.model.WXPayRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface WXPayRecordMapper {
    /**
     * 根据中台支付流水号查询记录
     * @param payNo
     * @return
     */
    WXPayRecord queryByPayNo(@Param("payNo") String payNo);

    /**
     * 根据业务号查询记录
     * @param businessNo
     * @return
     */
    WXPayRecord queryByBusinessNo(@Param("businessNo") String businessNo);

    /**
     * 保存记录
     * @param wxPayRecord
     * @return
     */
    int insertSelective(WXPayRecord wxPayRecord);

    /**
     * 更新记录
     * @param record
     * @return
     */
    int updateByPayNo(@Param("record") WXPayRecord record);

    /**
     * 更新记录
     * @param record
     * @return
     */
    int updateById(@Param("record") WXPayRecord record);
}
